package com.zhiyou100.mapper;

import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author yang
 */
public interface TeacherMapper {
    List<com.zhiyou100.entity.Teacher> getOneByTnameAndTpwd(@Param("tname") String sname, @Param("tpwd") String tpwd);

    com.zhiyou100.entity.Teacher getOneByTid(@Param("tid") Integer tid);

    List<com.zhiyou100.entity.Teacher> getAll();

    void deleteOneByTid(@Param("tid") Integer tid);

    void updateOne(@Param("tname") String tname, @Param("tpwd") String tpwd, @Param("tid") Integer tid);

    void addOne(@Param("tname") String tname, @Param("tpwd") String tpwd);


}
